package com.demo.starter.service.impl;

import com.demo.starter.entity.User;
import com.demo.starter.repository.extend.UserExtendMapper;
import com.demo.starter.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserExtendMapper mapper;

    @Override
    public User getById(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }

}
